<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html lang="zh-cn">
<head>
    <title>登陆...</title>
    <meta charset="UTF-8"/>
</head>
<body>
<div class="container">
    <jsp:include page="header.jsp" />

    <h4 class="mb-3">添加用户</h4>
    <form class="needs-validation was-validated" novalidate="" action="<c:url value="/user/add"/>" method="post" >
        <div class="mb-3" >
            <label for="username">Username</label>
            <div class="input-group">
                <div class="input-group-prepend">
                    <span class="input-group-text">@</span>
                </div>
                <input type="text" class="form-control" id="username" name="name" placeholder="Username" required="">
                <div class="invalid-feedback" style="width: 100%;">
                    请输入用户名...
                </div>
            </div>
        </div>

        <div class="mb-3">
            <label for="mobile">mobile</label>
            <input  class="form-control" id="mobile" name="mobile" required pattern="0?(13|14|15|17|18)[0-9]{9}">
            <div class="invalid-feedback">
                请输入正确的手机号...
            </div>
        </div>

        <div class="mb-3">
            <label for="address">Address</label>
            <input type="text" class="form-control" name="address" id="address" required>
            <div class="invalid-feedback">
                请输入地址...
            </div>
        </div>

        <button class="btn btn-primary btn-lg btn-block" type="submit">提交</button>
    </form>
</div>
</body>
</html>
